/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 * Adds methods of adding and removing to @see RestrictedCollection
 * @author Dmitri Paziy
 */
public interface Collection<T> extends RestrictedCollection<T> {
    /**
     * Adds item to collection
     * @param item Item to be added
     */
    public void add(T item);
    /**
     * Removes item from collection from specified index
     * @param index Index of item
     * @return Removed item
     */
    public T remove(int index);
}
